//Tranz-Am
//this file contains all of our GAME logic, that is for the GAME_GAME enumeration set up 
//in the GameLoop method we store everything here
#include "game_transam.h"

using namespace AXL_Projects;

//main library variables
extern Framework* GameFramework;			//framework
extern AnimationLibrary* GameLibrary;		//our graphics library
extern Configuration* GameConfiguration;	//our configuration object

//main game variables
extern Animation* DisplayPanel;

//the logic part called by the game loop
//return true to exit the game, false to continue as normal
bool TransAmGameLogic()
{
	//update player logic which can quit if ESCape pressed
	//this does nothing else
	if(key[KEY_ESC])
		return true;
	else
		return false;
}

//the drawing part called by the gameloop
bool TransAmGameDrawing()
{
	//draw the panel to the screen
	clear(GameFramework->DrawingSurface);

	//score panel - always top right. maybe only show if screen is > certain size
	blit(DisplayPanel->ReadOnly_CurrentItem,GameFramework->DrawingSurface,0,0,0,0,DisplayPanel->ReadOnly_CurrentItem->w,DisplayPanel->ReadOnly_CurrentItem->h);

	textprintf_ex(GameFramework->DrawingSurface,font,180,0,makecol(255,255,255),0,"version 1: simple draw. ESCape to quite");

	return false;
}
